
<div class="page-2">

	<ul class="no-list filter-list clear-fix">
		<li>
			<a href="#" class="filter-all selected">Tất cả</a>
		</li>
        <?php
			if($cate){
				foreach($cate as $row){
		?>
        <li>
			<a href="#" class="filter-<?=$row->slug?>"><?=$row->title?></a>
		</li>
		<?php }}?>
	</ul>
	
	<select class="filter-select-box" name="filter-select-box">
		<option value="filter-all" selected="selected">Tất cả</option>
        <?php
			if($cate){
				foreach($cate as $row){
		?>
        <option value="filter-<?=$row->slug?>"><?=$row->title?></option>
		<?php }}?>
	</select>
	
	<div class="gallery-list-wrapper clear-fix box-center">
		<ul class="no-list gallery-list clear-fix">
			<?php
				if($album){
					foreach($album as $r){
						$slug=$this->category->getSlugID($r->categoryID);
						$title=$this->category->getTitleID($r->categoryID);
			?>
			<li class="center filter-<?=$slug[0]->slug;?>">
				<a href="<?=PATH_URL.'static/images/album/'.$r->image?>" class="fancybox-image image-preloader" rel="gallery">
					<img src="<?=PATH_URL.'static/images/album/'.$r->image?>" height="130" width="180" alt="<?=$title[0]->title?>"/>
				</a>
			</li>
            <?php }}?>
		</ul>	
	</div>
</div>
